package com.price.sample.ui

import android.os.Bundle
import com.price.common.extend.doOnClick
import com.price.common.extend.logError
import com.price.common.viewbinding.base.BaseBindingActivity
import com.price.view.ArcProgressBar
import com.zp.common.databinding.ActivityViewBinding

class ViewActivity:BaseBindingActivity<ActivityViewBinding>() {

    override fun onCreated(savedInstanceState: Bundle?) {

        binding.btnSet.doOnClick {
            binding.progressBar.setMaxValues(60f)
            binding.progressBar.setCurrentValues(30f)
        }
        binding.progressBar.valueChangeListener=object :ArcProgressBar.ValueChangeListener{
            override fun onValueChange(value: Int) {
                    logError("value change:$value")
            }
        }
    }
}